package com.wind.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController // 组合注解：@Controller + @ResponseBody
public class HelloWorld {

    @RequestMapping("/hello")
    public String print() {
        return "这是用Spring Initializr创建的SpringBoot项目";
    }
}
